import service from '@/utils/request'

export const createQmVersion = (data) => {
  return service({
    url: '/qmVersion/createQmVersion',
    method: 'post',
    data
  })
}

export const deleteQmVersion = (params) => {
  return service({
    url: '/qmVersion/deleteQmVersion',
    method: 'delete',
    params
  })
}

export const deleteQmVersionByIds = (params) => {
  return service({
    url: '/qmVersion/deleteQmVersionByIds',
    method: 'delete',
    params
  })
}

export const updateQmVersion = (data) => {
  return service({
    url: '/qmVersion/updateQmVersion',
    method: 'put',
    data
  })
}

export const findQmVersion = (params) => {
  return service({
    url: '/qmVersion/findQmVersion',
    method: 'get',
    params
  })
}

export const getQmVersionList = (params) => {
  return service({
    url: '/qmVersion/getQmVersionList',
    method: 'get',
    params
  })
}
